package com.boliq.demo;

import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import com.boliq.demo.R;
import com.boliq.demo.adapter.MyAdapter2;
import com.boliq.demo.bean.UserBean;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;


public class Demo2Fragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater,
                             @Nullable ViewGroup container,
                             @Nullable Bundle savedInstanceState) {
        //将布局转换成代码对象
        View rootView = inflater.inflate(R.layout.fragment_demo,container,false);

        TextView tv = rootView.findViewById(R.id.tv_demo_text);
        tv.setText("我是第二个界面");

        return rootView;
    }

}
